package com.mysoft.gfyx.workbench.controller;


import com.mysoft.framework.context.api.ContextManager;
import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.workbench.controller.dto.ApplyRankRequestDto;
import com.mysoft.gfyx.workbench.remoteservice.RemoteReportService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;


@PubService(value = "/applyDataApi", prefix = RequestPrefix.API)
@Tag(name = "消息控制器-API")
public class ApplyDataApiController {

    @Autowired
    private RemoteReportService remoteReportService;

    @Autowired
    private ContextManager contextManager;

    @PubAction(value = "/applyRank", method = RequestMethod.POST)
    public Object applyData(@RequestBody ApplyRankRequestDto dto) {
        return remoteReportService.applyRank(dto);
    }
}
